View Issue Details

IDProjectCategoryView StatusLast Update
0036543LazarusLCLpublic2020-01-13 12:43
ReporterWitold PosiewałaAssigned ToZeljan Rikalo 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformOSLinuxOS VersionFedora 31
Product Version2.0.6Product Build 
Target VersionFixed in Version 
Summary0036543: No Images in TMenuItem (TMainMenu) qt5
DescriptionThere are no images that were added to the object TMenuItem (libQt5Pas.so.1.2.6), when compiling it to the gtk2 version - all ok.
Steps To ReproduceCreate new application,
add TMainMenu, add MenuItem and add some bitmap to the MenuItem.

Compile and run in gtk2: images appear in the menu.
Compile and run in qt5: no images appear in the menu
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetQT5
Attached Files

Activities

Zeljan Rikalo

2020-01-10 09:31

developer   ~0120296

Please attach example project.

Witold Posiewała

2020-01-10 19:38

reporter   ~0120312

Thank you for your interest. Sorry, but I can't upload any file - upload is hanging. I've tried many times - even though the example has only 3.8kB. It can be produced as described earlier. New project, add TMainMenu object. Add any MenuItem to it. Add any graphic in MenuItem Bitmap (I tried a small png file). Compile the application into qt5. Below unit1.lfm:


object Form1: TForm1
  Left = 626
  Height = 240
  Top = 170
  Width = 320
  Caption = 'Form1'
  Menu = MainMenu1
  OnCreate = FormCreate
  LCLVersion = '2.0.6.0'
  object MainMenu1: TMainMenu
    left = 37
    top = 27
    object MenuItem1: TMenuItem
      Caption = 'MenuItem1'
      Bitmap.Data = {
        36040000424D3604000000000000360000002800000010000000100000000100
        200000000000000400006400000064000000000000000000000000000000ABAB
        AB2EA4A4A452A4A4A361A8A5A26CAEA7A16DB2A9A179B0A8A178B1A8A178B1A8
        A179ACA7A26EA7A5A36EA4A4A462A4A4A453AAAAAA2F0000000000000000BBBA
        BA24B3ACA642A9A6A1487D95A98F3579B7F30466BFFF005FC5FF0060C5FF0E6A
        BEFF4880B4E28C9BA770ADA6A04CB2ADA942BABABA2400000000000000000000
        0000000000000067C8980062C4FF0066C4FF0169C5FF0067C3FF0067C3FF0068
        C5FF0067C5FF0063C4FF026CCB5B000000000000000000000000000000000000
        0000016FD2BA016AC5FF046CC7FF046DC8FF006BC6FF1E80D0FF1278CEFF016C
        C6FF046CC8FF036DC7FF0269C6FF0174D96B0000000000000000000000000376
        DC6F046BC7FF036EC7FF056ECAFF046FC9FF0066C7FFFFFFFFFFE7F4FCFF0067
        C6FF0571CBFF056FCAFF056FC9FF036DC9FF0471D02500000000000000000472
        CFFB0570CAFF0470CBFF0673CBFF0674CDFF0070CCFF499BDCFF3390D8FF0071
        CCFF0675CEFF0674CDFF0671CCFF0471CBFF0576D6B8000000000460B0450572
        CBFF0673CCFF0575CEFF0775CFFF0778D0FF0074CFFF50A1DFFF298CD7FF0276
        CFFF0777CFFF0776CEFF0776CDFF0574CDFF0675D1FF000000000471CB7A0672
        CDFF0776CDFF0678D0FF087AD0FF087AD1FF0072CFFFD5E9F7FF91C4EAFF0076
        D1FF087CD3FF087BD2FF0679D1FF0777CEFF0576D2FF035AA0310875CE870675
        CEFF0679D1FF087BD1FF097DD4FF097FD5FF0076D3FFE1EEF8FFA3CEEFFF0078
        D3FF087ED6FF097ED5FF077CD2FF0779D2FF0A7BD4FF055DA43F1380D1720678
        D0FF077AD3FF097ED3FF0880D5FF0A82D8FF0078D4FFF1F7FBFFBCDCF2FF007B
        D6FF0983D7FF0A81D6FF087FD6FF077BD3FF1486D9FF065DA22A0665B1351E8D
        DAFF077CD2FF0A81D7FF0983D9FF0B85DAFF007BD8FFFFFFFEFFD4E7F7FF007E
        D9FF0B86DBFF0B84DAFF0A82D8FF067ED5FF1F93E1FF000000000000000031A0
        E8EA037BD4FF0983D7FF0B86DBFF0C88DBFF007EDAFFFFFFFFFFDCEBF6FF0082
        DBFF0C8ADCFF0A86DCFF0A84D9FF0B83D7FF2DA3EE9E00000000000000001896
        ED48329FE3FF047FD8FF0C88DBFF0B8BDFFF078ADFFF3FA3E4FF349EE3FF088D
        E0FF0D8DE0FF0B89DEFF0280D9FF42ADE9FF0B81D40C00000000000000000000
        00002BA8F7833AA7E6FF0383DCFF098ADEFF0D90E3FF098FE3FF0A91E5FF0C91
        E4FF098CE0FF0688DDFF4EB7ECFF1A9FF53B0000000000000000000000000000
        00000000000023A6FA5F50BCF1FF37AAE9FF078DE2FF0991E5FF0A94E6FF0F94
        E5FF44B3ECFF50BFF6E6149CF42A000000000000000000000000000000000000
        000000000000000000000869A8021F9DE8664BBAEEAD4CBBEFCA4DBCF1C647B7
        EF9F1597E64C0000000000000000000000000000000000000000
      }
    end
  end
end

Witold Posiewała

2020-01-10 19:49

reporter   ~0120313

Sorry, I didn't add. I checked. In a location with the qt5-qtbase-5.13.2-1.fc31.x86_64 library - it's bad. In the location with the library qt5-qtbase-5.12.1-7.fc30.x86_64 is fine.

Juha Manninen

2020-01-11 00:45

developer   ~0120318

> Sorry, but I can't upload any file - upload is hanging.
The file gets uploaded when you click the Add Note button. Yes, I also struggled with it at first. :)

Zeljan Rikalo

2020-01-11 09:47

developer   ~0120321

@Witold, are you saying that bug exist only with Qt5-5.13 ?

Witold Posiewała

2020-01-13 12:43

reporter   ~0120400

Sorry, I was unavailable for 2 days.
Yes, when I use the Qt5-5.12 library it is good. But when I use the latest in Fedora 31 (Qt5-5.13) it's bad.
Thanks @JuhaManninen, I'm uploading an example application :).

example.tgz (3,840 bytes)

Issue History

Date Modified Username Field Change
2020-01-09 22:21 Witold Posiewała New Issue
2020-01-10 09:31 Zeljan Rikalo Assigned To => Zeljan Rikalo
2020-01-10 09:31 Zeljan Rikalo Status new => assigned
2020-01-10 09:31 Zeljan Rikalo Status assigned => feedback
2020-01-10 09:31 Zeljan Rikalo LazTarget => -
2020-01-10 09:31 Zeljan Rikalo Note Added: 0120296
2020-01-10 19:38 Witold Posiewała Note Added: 0120312
2020-01-10 19:38 Witold Posiewała Status feedback => assigned
2020-01-10 19:49 Witold Posiewała Note Added: 0120313
2020-01-11 00:45 Juha Manninen Note Added: 0120318
2020-01-11 09:47 Zeljan Rikalo Note Added: 0120321
2020-01-13 12:43 Witold Posiewała File Added: example.tgz
2020-01-13 12:43 Witold Posiewała Note Added: 0120400