Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Drawing 70k objects in QGraphicsView - lag lag lag

    Unsolved qgraphicsview
    12
    0 Votes
    12 Posts
    1k Views
    mrjjM
    @Dariusz Ok so you could get the 40K sample to lag also ?
  • How to read from QListWidget and save the text in it in the form of string?

    Unsolved
    2
    0 Votes
    2 Posts
    254 Views
    jsulmJ
    @preddy Iterate over items using https://doc.qt.io/qt-5/qlistwidget.html#item and take the text from each item using https://doc.qt.io/qt-5/qlistwidgetitem.html#text
  • Dialog apps with Qt::Popup attribute do not get focus when launched via shortcuts

    Unsolved
    2
    0 Votes
    2 Posts
    557 Views
    G
    Can anybody at least reproduce the same issue? I've experiened it under X11 on four different hosts (Ubuntu + i3, Ubuntu + xfce4, Ubuntu + Gnome, Arch + i3), so it bothers me the issue is largely unknown. It makes an application consisting of a standalone popup dialog basically unusable under X11. Under Wayland there is no such problem. Apparently, in X11 something happens between the shortcut invocation and actual appearance of the widget that jumbles up the input behavior.
  • PyQt not using Qt themes on Linux

    Unsolved
    5
    0 Votes
    5 Posts
    5k Views
    nshiellN
    I've seen this issue too, on Debian I've always found it much better to install PyQt via apt rather than Pip! Hence my instructions here: https://github.com/nshiell/blue-log-viewer The big issue now is that I can't package my app into an AppImage and get the styling to work. The AppImage should have PyQy bundled in it, but the version inside the AppImage can't then inherit styling from the desktop. Fixing this is way beyond me and there is a heck of a lot of movement on KDE desktops with theming and application packaging. When we have goodies like AppImage, Snappy, Flatpack and also Kvantum all existing at once I think PyQt theming is going to be tricky to get right :(
  • setting size for the table size

    Unsolved
    4
    0 Votes
    4 Posts
    198 Views
    SGaistS
    You can set the resize mode for that column.
  • How can I execute a jar file in resources of the project with QProcess?

    Solved
    5
    0 Votes
    5 Posts
    683 Views
    atreidexA
    @JonB Thanks for clarification!
  • QThread + OpenMP

    Solved
    2
    0 Votes
    2 Posts
    419 Views
    Christian EhrlicherC
    I don't see why it should not be possible.
  • QTreeView in single line format

    Unsolved qtreeview
    5
    0 Votes
    5 Posts
    458 Views
    A
    Thanks VRonin, that is probably easier.
  • Qt vs HTML5

    Unsolved
    3
    0 Votes
    3 Posts
    194 Views
    transistor47T
    Thank you so much!!!!
  • MTU size of LowEnergy connection on macOS limited to 104 bytes?

    Unsolved
    1
    0 Votes
    1 Posts
    134 Views
    No one has replied
  • QGraphicsItem move parent instead of child...

    Unsolved qgraphicsitem
    2
    0 Votes
    2 Posts
    614 Views
    B
    Since QGraphicsItem::pos() Returns the position of the item in parent coordinates. So the item and its parent item are not in the same coordinate system. I think you should calculate the offset between pos() and value, then calculate the new pos of mParentItem by adding offset to mParentItem->pos().
  • Update a Image every cycle in a different thread?

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    B
    Does this thread only do the randint and fill thing? If it is true, I think there's no need to use thread, the timer will be enough.
  • How does requestConnectionUpdate work under Linux?

    Unsolved
    3
    0 Votes
    3 Posts
    316 Views
    A
    No sorry there is no error message at all. Under mac os I receive a not implmented but under linux / bluez where it should be implemented I received nothing. But I've could solve it by forcing my device to update the connection interval to the minimum.
  • Disable custom QInputContext for single control

    Solved
    7
    0 Votes
    7 Posts
    491 Views
    D
    @SGaist We have a custom input context, that catches the RequestSoftwareInputPanel event, and displays the appropriate virtual keyboard/keypad. All I did was add an extra check for the widget in question having the "NoKeyboard" property (a new DynamicProperty defined for this purpose in our application). In this case, it will just how show the panel.
  • QML Binging loop detected for property

    Solved
    3
    0 Votes
    3 Posts
    326 Views
    SPlattenS
    Thank you, I'm looking at ways of reducing and condensing the file, there are lots of similar things in the file.
  • Adding table content to SQLite DB

    Unsolved
    13
    0 Votes
    13 Posts
    952 Views
    JonBJ
    @DouglinhasZN You need to stop and really read and follow the pattern from https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.executemany. Until your code has an iterator or a generator in it, like they show there, executemany() is never going to work. If you can't get the hang of/don't want to use that, go over to to doing your inserts explicitly in a loop calling just execute() each time. You will never want to go: Summary_Findings_Name = str([self.SummaryFindingTable_Window.item(row, 0).text() for row in range(self.SummaryFindingTable_Window.rowCount())]) with that str() at the start, as that's going to make a single string out of each of the rows' values, which can never be the right approach.
  • Printing without QPrintDialog (not on default printer)

    Solved
    5
    0 Votes
    5 Posts
    609 Views
    A
    QString printerName = "Canon XXXX"; QPrinterInfo pinfo = QPrinterInfo::printerInfo(printerName); if (!pinfo.isNull()) { QPrinter printer(pinfo); m_report->printReport(&printer); } else { // show user message: printer not found... } Thanks again @JonB
  • Slot are not defined but works fine even without connection to signal

    Unsolved
    3
    0 Votes
    3 Posts
    319 Views
    L
    @JonB Thanks a lot for quick response
  • MSVC 2015 32 bit support

    Unsolved
    4
    0 Votes
    4 Posts
    417 Views
    B
    @Ahmadinho Oh, sorry, I was checking the Qt online installer repository and I saw a qt.qt5.5120.win32_msvc2015 folder. So I thought there is a 32bit one of MSVC2015. But now I find out that it is empty :( So, no, there's not.
  • qt creator 4.12 + python (pyside2)

    Unsolved
    3
    0 Votes
    3 Posts
    261 Views
    JonBJ
    @newbiecodie As another comment, since Python 3 was released in 2008(!) do you really need to continue using Python 2.7? If you really mean you used PySide, it is time to change to PySide2 now, PySide is no longer supported. These changes could be related to why you "crashed".