Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Qt application work on Ubuntu 20.04, but doesn't work on Windows 10

    Unsolved
    5
    0 Votes
    5 Posts
    479 Views
    J
    Thank you all for your activity! I found out why my app freezes from time to time.Reading from the serial buffer has an unlimited size. When I parse messages, an error occurs in the business logic and an infinite loop appears (because there is a bad conditional for while loop) in read signal from Serial. That's why my memory in the application was increasing. I don't know why this error not occurred on Ubuntu, but I've started to fix this problem.
  • ScrollArea intervers with expand policy

    Unsolved
    18
    0 Votes
    18 Posts
    1k Views
    C
    @buhtz The grid size is a QSize in pixels x and y, not a number of rows and columns. Items will align on this notional grid when rendered. You can leave it out and the wrapping will be compact.
  • Get all spans in QTableWidget

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    M
    @Alexey-Serebryakov I have same proplem , Have you got a solution yet?
  • 0 Votes
    2 Posts
    144 Views
    JonBJ
    @Tater Start by demonstrating what value this->VisiblePixmapList[(int)item->VisibilityIcon] has. It's probably correct, but we/you don't know that for sure till you print it out. Use break statements correctly and consistently in your switch statement. You are returning a QPixmap for DisplayRole. Where does Qt say you can do that? DisplayRole has to resolve to a string, https://doc.qt.io/qt-6/qt.html#ItemDataRole-enum Qt::DisplayRole 0 The key data to be rendered in the form of text. (QString) QPixmap does not, so probably comes out empty. I have not tried it, but from that page don't you want: Qt::DecorationRole 1 The data to be rendered as a decoration in the form of an icon. (QColor, QIcon or QPixmap) ?
  • Export enum classes

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    C
    @SGaist I have tried set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) again but it does not seem to work for qt symbols. I get errors mentioning the static meta object
  • Qt Creator, open function (move to function lines) in new window or existing window

    Unsolved
    1
    0 Votes
    1 Posts
    81 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    6 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Q_Object for specialization class

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    H
    Sorry for all, after considering, this is absolutely a fake requirement. Manager Class will always add member to Document class. Avoid changes to Document class is meaningless.
  • Qt-created dll does not import into Qt-created app?

    Unsolved
    3
    0 Votes
    3 Posts
    273 Views
    D
    @ChrisW67 , got it, thanks!
  • QProcess and Ctrl-Z + BG on Linux

    Unsolved qprocess
    17
    0 Votes
    17 Posts
    7k Views
    JonBJ
    @SameerK If it's repeatable you can raise a bug report for it. They will want as small a piece of code for the UI as possible. Pick something standard under Linux for the command (sleep might be suitable).
  • Conflicting Targets

    Unsolved
    1
    0 Votes
    1 Posts
    128 Views
    No one has replied
  • How to create Qt 6.5 mysql driver with cmake?

    Moved Unsolved
    60
    0 Votes
    60 Posts
    22k Views
    S
    @artwaw No, sir. I am just showing that I have placed those files in the output folders. I am showing that I have placed those in each and every place where I was told to place them above. Also, it's available in the driver folder too. But, it's ok now 😅
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Custom Widget not taking entire space

    Solved
    8
    0 Votes
    8 Posts
    429 Views
    JonBJ
    @jsulm Please note the OP is discussing this in https://forum.qt.io/topic/146828/update-2-qtablewidgets-simultaneously-to-reduce-the-run-time.
  • Custom widget in QGroupBox

    Unsolved
    3
    0 Votes
    3 Posts
    280 Views
    Pl45m4P
    @Creatorczyk Just a guess from looking at the image: It looks like you made IpComboBox a QGroupBox. A QComboBox subclass widget wouldn't have it's own layout. If you want your IpComboBox in your QGroupBox, create a box, move a regular comboBox in there and promote this widget to your IpComboBox code/class
  • Issue with Qt BLE Device Discovery - Non-BLE Devices Detected

    Unsolved
    1
    0 Votes
    1 Posts
    121 Views
    No one has replied
  • Qt creator cannot open a file or project

    Unsolved
    1
    0 Votes
    1 Posts
    126 Views
    No one has replied
  • binary '+': no operator found which takes a left-hand operand of type 'QDateTime'

    Solved
    3
    0 Votes
    3 Posts
    199 Views
    G
    @jsulm I was just about to comment that I solved it. I just switched to the 11.0 branch instead of the master branch. I'm using Qt 6.3.1 and building Qt Creator 11.0 and now it works!
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    7 Views