Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Video loop glitch

    Unsolved
    5
    0 Votes
    5 Posts
    942 Views
    T
    Hello everyone, I am actually experiencing the exact same issue, using Qt 5.15.2, on Win 10. I have tried with *.webm and *.mp4 videos. Tried using both : QMediaPlaylist::Loop QMediaPlaylist::CurrentItemInLoop Both give the same "split second blackout" glitch. Hope this helps. Regards,
  • QTableView how to detect user click on cell

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    eyllanescE
    @Publicnamer It is recommended that you check https://doc.qt.io/qt-5.15/qtablewidget-members.html where all the methods and signals of QTableWidget are (together with the base classes)
  • Is there an outline view?

    Unsolved
    2
    0 Votes
    2 Posts
    218 Views
    JonBJ
    @Publicnamer QTreeWidget or QTreeView.
  • QTableWidget set font for individual cells?

    Unsolved
    3
    0 Votes
    3 Posts
    997 Views
    Christian EhrlicherC
    The font for a cell can be changed by returning the desired font for Qt::FontRole which you can set in your item via QTableWidgetItem::setFont().
  • QComboBox: editable and current index / data

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    eyllanescE
    @Audetto please provide a minimal and reproducible example
  • Where is the Source code and DLLS for the windows dependencies of QT?

    Unsolved
    7
    0 Votes
    7 Posts
    750 Views
    C
    @Sussybaka What about it? That post is complaining that the Qt installer did not repair a broken Microsoft runtime installation on Windows. Your original post make no mention of Qt and you are not running on Windows (just a partial imitation of one).
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Qmake did not run moc to generate moc files?

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    mrjjM
    @Publicnamer Well MOC runs on the .h files included in the project so if you didn't include the header file in the .pro file, then MOC would have no idea it has to process it.
  • Completer should use an extern library to complete the path

    Unsolved
    2
    0 Votes
    2 Posts
    176 Views
    SGaistS
    Hi and welcome to devnet, Why not parse that external data at the start of your application to build the data for your completer ?
  • why below error come when in install qt ?

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    SGaistS
    Hi, No, you either have to cross-compile it yourself or if your target is powerful enough, build directly on it with the Qt provided by the Linux distribution that runs on jt.
  • Open-file dialog returning gibberish?

    Unsolved
    3
    0 Votes
    3 Posts
    291 Views
    SGaistS
    Hi, @Publicnamer said in Open-file dialog returning gibberish?: const char *path = filename.toStdString().c_str(); You are keeping the address of a temporary std::string that you convert to a c string. So there's a high chance that path points to garbage memory.
  • How I can re-position items when other item was hiden

    Unsolved
    4
    0 Votes
    4 Posts
    439 Views
    raven-worxR
    @SilentWolf use layouts
  • How to change button style sheet?

    Solved
    5
    0 Votes
    5 Posts
    596 Views
    V
    @mrjj THANK YOU :)) Helped a lot!
  • Reading line by line of QTextStream into QByteArray with zero padding

    Solved
    4
    0 Votes
    4 Posts
    549 Views
    C
    Just for information, the "weird behavior" is UTF-8 decoding/encoding. These bytes { 0x0c, 0xa6, 0xd5, 0x00, 0x02, 0x08 } do not represent a valid UTF-8 encoded string. When readLine() attempts to decode the byte as a UTF-8 string it gets to the invalid portions, specifically the bytes 0xa6, 0xd5, and decodes them as the Unicode Replacement Character 0xfffd. This flags the invalidity without throwing an exception, and makes the subsequent string safe to handle. If you then explicitly UTF-8 encode the string containing U+FFFD characters then they get correctly encoded as UTF-8 0xef, 0xbf, 0xbd.
  • QNetworkAccessManager Crashing in 5.15 when used in another thread

    Unsolved
    10
    0 Votes
    10 Posts
    908 Views
    R
    Yes and it's all in the main thread now.
  • Remove QSharedPointer from a QList?

    Solved
    8
    0 Votes
    8 Posts
    996 Views
    SGaistS
    Hi, Out of curiosity, why do you need QSharedPointer in this case ?
  • Source code of examples

    Solved
    2
    0 Votes
    2 Posts
    181 Views
    Christian EhrlicherC
    See https://code.qt.io/cgit/qt/qtopcua.git/tree/examples/opcua
  • KDE Frameworks KSyntaxHighlighting; docs?

    Solved
    4
    0 Votes
    4 Posts
    389 Views
    E
    @VRonin said in KDE Frameworks KSyntaxHighlighting; docs?: @Ewan-Green said in KDE Frameworks KSyntaxHighlighting; docs?: It's not quite the extensive documentation of every member like I'm used to with Qt. You can find it here. Qt spoils us with the quality of the documentation but if, on that page, you click on Class List you can find the documentation class-by-class and method-by-method Thank god! I was looking for exactly this. Thank you.
  • Calling derived method from base class pointer vector

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    M
    To continue the same way as @JonB I think the reason is that C++ is not a dynamic language as objectiveC or Java, foreach(Base* widget, vector) / I hate auto !!! { widget->handleSomething(); } Here C++ see widget is a Base instance and when the compiler looks at the handle method, it sees it as protected and stop at it with an error. C++ is not so smart :)
  • insertRows and insertRow in tableview

    Solved
    15
    0 Votes
    15 Posts
    5k Views
    B
    Hey guys, Thanks a bunch, in all i wanted to understand the insertRows and insertRow, plus how to implement it. You guys directed me in right direction Thank You. marking resolved