Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Custom QTableView Stylesheet

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    K
    Thanks for the info. There are times when QEvent::StyleChange was not received and of course the stylesheet was not correctly applied. But there were also times when it was received but the custom table view still ignored the stylesheet. (I printed the stylesheet each time the event was received.) I wasn't sure where I was supposed to make the polish call so I didn't get any additional information from this. Sometimes it's the rows that are not following the stylesheet and sometime it's the header that is not following the stylesheet. It is not consistent. Here's the table when there's no stylesheet selected. [image: 7eb586af-8305-45ba-a926-a415ef6d772d.png] Here the table ignored the background color and text color of the row it should be black with white text but the header section is correct. [image: 747dcb71-fd18-4e0a-ad82-36e0979248d3.png] Here the table ignored the background color of the row (it should be yellow) and the header section is correct. [image: dc73bc3c-e538-4ebb-97fe-2773003b73f6.png] Here the background color and text color of the row are correct but the header section is incorrect, the header section should be black with white text. [image: 6c243a06-3665-41b9-9d51-d4fe68b7f906.png] Here the background color and text color of the row are correct but the header section is incorrect, the header section should be yellow with black text. [image: b85c3618-5e80-4b79-922b-b0be541b827b.png]
  • 0 Votes
    3 Posts
    721 Views
    R
    Thank you very much! That's actually the one I'm trying to add right now! :) Good to know I'm on the right track!
  • How can I prevent QOpenGLWidget from stealing mouse press events from MainWindow?

    Unsolved
    8
    0 Votes
    8 Posts
    887 Views
    R
    I'm having some luck just adding a X11 'XQueryPointer' to get the mouse button state and I think I can combine that with a eventFilter to allow me to do what I want. Now I'm just wondering if there's a 'tick' or refresh function that I can call for a QMainWindow. But that's a different question so Iv'e made a new query for that one.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Not able to transfer large files on QTcpSocket

    Unsolved
    4
    0 Votes
    4 Posts
    723 Views
    SGaistS
    Hi, From the looks of it you have a protocol to follow. You should implement that logic properly rather than relying on some hazardous state. It looks like you should have something along the line of: send json data get ack from server send file get ack from server Rince and repeat. You might want to take a look at Amazon's S3 chunked API. It has a pretty good design and implements a pretty nice way to upload heavy files.
  • How to get from Qt Designer (signal editor) to Qt Creator code ?

    Unsolved
    2
    0 Votes
    2 Posts
    218 Views
    SGaistS
    Hi, Are you using the independent tool called Designer or are you in Qt Creator ? If the later, open the .cpp file that was created for your class and add your code there. Edit: Sorry, the text layout made miss that point. Open your project in Qt Creator and you can edit there the code. It would be easier to use Qt Creator directly since it integrates the Designer functionnality.
  • Button pop-up menu "Set automatically " ??

    Unsolved
    2
    0 Votes
    2 Posts
    246 Views
    Pl45m4P
    @AnneRanch said in Button pop-up menu "Set automatically " ??: No, I cannot get a screen shot of it . ( My OS "feature ") You can (assuming you are on Linux). Stumbled across this as well lately, when I wanted to take a screen shot of some context menu / popup, which disappeared as soon as I pressed some buttons to take the screenshot. IDK, if YOUR Linux distribution has this "feature" as well, but on Ubuntu (and Ubuntu-based dists.), you can setup a timer before taking the shot. So I've set the timer to 5 secs, started, then opened the popup menu and just waited for the timer to expire... ViolĂ  :-) @AnneRanch said in Button pop-up menu "Set automatically " ??: "Set automatically" What does it do / means ? Does google help in this case? I even dont know, if this is a Qt or an OS feature... Every button in your app has this?
  • Lots of errors in unmodified source, what's happening?

    Solved
    7
    0 Votes
    7 Posts
    481 Views
    sierdzioS
    Nice! Happy coding
  • Trouble with .ini settings file

    Solved
    3
    0 Votes
    3 Posts
    241 Views
    UnitScanU
    Very well, thank you!
  • Receiving data from QTcpSocket

    Unsolved
    30
    0 Votes
    30 Posts
    5k Views
    JonBJ
    @SPlatten said in Receiving data from QTcpSocket: Could the problem be because I am using both synchronous and asynchronous methods in my application? As @KroMignon says. Also I believe we have seen programs going wrong if they try to use the asynchronous signals at the same time as the synchronous waitFor..s, they get in each other's way IIRC.
  • Embedding a Graphics View in a Scene

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    These are recommandation that apply to 90-95% of the time and then you have special cases like yours. Technically speaking you are not overlapping you have some sort of OSD. A bit like the minimap is some video games which would rather be seen as an overlay. Not that you can mix the two, have you main widget managed with a layout because it does what you need and only handle your overlay manually. That can simplify your code as well.
  • What are the rules for ordering pseudo-states?

    Solved
    2
    0 Votes
    2 Posts
    206 Views
    B
    This is a sub-control: ::handle. This is a pseudo-state: :horizontal. According to the documentation Pseudo-states appear at the end of the selector
  • QWidget: Must construct a QApplication before a QWidget

    Unsolved
    30
    0 Votes
    30 Posts
    10k Views
    Please_Help_me_DP
    I'm really sorry that was my mistake. I've found out that when building newest VTK 9.0.1 my CMAKE cofiguration used to contain all Qt settings (QtDir and other Qt path to Qt cmake files they were automatically set from PATH var and I didn't check them) from python PySide2 Qt. So right after I have set the correct Qt dirs and rebuild VTK 9.0.1 it began to work fine ! Thank you for your effort and especially to @Cobra91151 who spent many hours trying to solve my problem
  • 0 Votes
    5 Posts
    7k Views
    G
    I finally made it. I followed the instructions and run gambas3 with PuTTY's prompt. [image: e689dcea-ea38-4677-a680-da31f1d3f7b0.png] I still wonder why i couldn't run x11 server directly with ubuntu 20.04.1 wls2 but i guess it doesn't matter right now. Thank you for you support.
  • problem QPlainTextEdit setTopMargin

    Unsolved
    2
    0 Votes
    2 Posts
    160 Views
    SGaistS
    Hi, As explained in the documentation QPlainTextEdit only supports limited text formatting.
  • QObject::connect: No such slot MainWindow::getThing(ctx)

    Solved
    2
    0 Votes
    2 Posts
    190 Views
    SGaistS
    Hi, You can't pass parameters values in your connect calls. Even more you can't do a connection from a signal with no parameters with a slot that has parameters unless they have all default values.
  • Dynamic gridLayout and QComboBox using a drop-down menu

    Unsolved layout drop-down grid gridview qgridlayout
    1
    0 Votes
    1 Posts
    588 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • MySQL Plugins for Qt5.15.0

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    SGaistS
    Do not forget to properly clean before retrying your build as explained in the doc otherwise the cache will kick in and you'll stay in the same situation.
  • Critical build error in qmetatype.h (Qt 6.0.0)

    Solved
    3
    0 Votes
    3 Posts
    785 Views
    B
    Thanks a lot! I ignored this bug report tool exists! This is exactly my issue! I've marked the topic as solved.