Skip to content
  • 0 Votes
    3 Posts
    320 Views
    D

    @sierdzio said in QMouseEvent::pos() returns different values on different OS:

    No, it is not related to the style selected. I checked on Windows and it has no shift on Windows Vista, Windows and Fusion.

  • 0 Votes
    6 Posts
    529 Views
    P

    @JonB
    @JoeCFD

    OK found that Wayland just doesn't allow to windows to move themselves.

    Not a necessary feature for me and can't solve the black screen problem when logging with Xorg.
    Will just ask gnome to center new windows with tweaks.

    Closing the topic.

    Thanks to both you.

  • 0 Votes
    5 Posts
    652 Views
    bibasmallB

    @SimonSchroeder
    thank you, you were absolutely right.

  • 0 Votes
    13 Posts
    992 Views
    JonBJ

    @JonB
    You have (for unknown reason) placed a button at row #5 column #6 and spanning 5 rows and 2 columns. It's not going to make much sense, is perhaps not what you intend, and will move around when you place other widgets on the grid layout.

    I know nothing about "In the gray square there should have been a cube. that I opened",

    The second shot shows about what I expect when you didn't use any layout. If the 3 lines of text there were deliberate you would need to put them into the layout now if you expect to see them.

  • 0 Votes
    2 Posts
    603 Views
    Kent-DorfmanK

    The above move is superflous so don't do it. Simply hide and show without repositioning the window. window managers and decoractions make the kind of move you are trying ambiguous.

    If you must explicitly position the window then do move() before the initial show and always use that location, understanding that it won't be accurate (because the window manager decorations are not part of the wiget's geometry.

    This is the price you pay for a plethora of plug-in widow managers with different capabilities and styles.

  • 0 Votes
    10 Posts
    2k Views
    MasterBLBM

    It is as follows:
    Pic 3 with these long spacers contains complex widgets MechPartWidget presented in pic 4. You can see a tiny selection above the 2nd vertical spacer
    Then, in MechPartWidget there are no layouts/widgets with vertical horizontal policy set to expanding.
    Next, in the MechPartWidget there is a custom widget InventoryWidget. I tried to add QVBoxLayout to it, several widgets, and then a vertical spacer - and I expect this own-added layout would be honoured only inside boundaries of InventoryWidget, yet it isn't.

  • 0 Votes
    4 Posts
    1k Views
    W

    Yep , fixed !!

    Biggest achievement of ma layf.

    Topic->setAsSolvedPolicy(Qt::AlwaysTrue);

  • 0 Votes
    2 Posts
    1k Views
    rwikR

    Upgrading to 5.6 solved my issue.

  • 0 Votes
    16 Posts
    7k Views
    D

    @guidupas, Thanks for this post,
    I am in same situation , did you find any result for this, I am in same problem for android and ios both development.
    Please can you guide me if you have some work around.

  • 0 Votes
    5 Posts
    2k Views
    kshegunovK

    @qtacc32
    If you're still struggling with this if possible try sharing a real piece of the code. It might be something trivial that doesn't show up in the example (which looks fine). Or at least a MWE that reproduces the problem, since I could not run your example, since it's not complete.

    Kind regards.

  • 0 Votes
    2 Posts
    1k Views
    mrjjM

    Hi I dont know about mouse coors
    but Just wanted to make sure you saw
    Diagram Scene Example
    in case you could borrow stuff from that.

  • 0 Votes
    8 Posts
    11k Views
    mrjjM

    @maximo
    Agree.
    I wonder if there is something secret I missed in some Doc.

  • 0 Votes
    6 Posts
    6k Views
    A

    I do not understand last question. I do not see any problem with mapping which rely on the item bounding rectangle.

    You can have an infinite number of visually the same graphics items if you use different combination of position and bounding box parameters.

    For example if you create QGraphicsEllipseItem using following rectangle/position pairs you will get the same result on the screen?
    pair 1:
    QRectF rect1( 0, 0, 1., 2 );
    QPointF pos1(10.,20.);
    pair 2:
    QRectF rect1( 10,20, 1., 2 );
    QPointF pos1(0.,0.);

    Which way to define depends on your needs.

  • 0 Votes
    5 Posts
    5k Views
    Chris KawaC

    You can't get a position of your window inside that window's constructor because it doesn't have one yet.
    The window manager of your OS gives your window a position when it is first shown (or if you explicitly called move() before).
    The window is shown when you call on it show()or any of the related functions like showMaximized().

    After the window is shown you can get the window position including window frame with pos() and without the window frame with geometry().topLeft().

  • 0 Votes
    4 Posts
    4k Views
    Bharath_pthinksB

    @thales-usa
    Dear Sir/Madam

    “Greeting from PTHINKS”

     Are you looking for Experienced & Certified Qt and QML Experts?
     Are you looking for QML App development on Across platforms?
     Are you looking for Qt & QML team building?
     Are you looking for C++, Qt & QML training?
     Do you want to jump-start Qt & QML Project?

    PthinkS specializes in C++, Qt, Qt Quick (QML), Qt Mobility software development and is a software training organization. Our focus is always being to provide highly professional and quality services. “We do what we know best. Nothing beyond”.

     Qt Champion for the year 2017
     Strong company with 35+ C++, Qt & QML professionals
     Only Company in India Focused on C++, Qt & QML, Qt OpenGL
     Only Indian company to train more than 10000+ Software Professionals.

    We can help your software development project by

     specifying and implementing your entire development, from scratch
     supplementing your project by implementing parts of the application
     continuing the software development of a project
     integrating Qt and C++ and/or QML and C++ or Qt, C++ and HTML5
     refactoring and back-porting code to Qt (see Migrations)
     helping you with the User Interface design (see UX/UI Design)

    We have provided training and software development services for “Bombardier Transportation India Private Limited, Mercedes-Benz Research, and Development India, Siemens, Robert Bosch, Harman International, Renault Nissan Technology, Nokia, iGate, Wipro, TVM Signalling and Transportation Systems Pvt. Ltd, Cisco, Synamedia, Cognizant, Infosys, Tata Power SED, Tata consultancy services, Tata Elxsi, KPIT, L&T Technologies, L&T Emsys, NDS, LG Soft, Honeywell, Visteon, ABB, Atos, UTC, Microsemi, IBM, Mentor Graphics, Emerson, Tektronix, Visiontek, Bharath Electronics Ltd (BEL), L&T IES, C-DAC, Klearvision Digital(Israel), University of Haifa (Israel), Nile Center for Technology Research (Sudan), London Stock Exchange, Millennium IT (Sri Lanka,) Intel (Indonesia) Little More India, Appaswamy associates, Orion scales, many more companies with academic’s industry...

    For more information related to Qt and QMl please visit http://www.pthinks.com

    “Official reference (Name, work Email Id, Desk Number) and feedback can be shared based on request.”

    Looking forward from here. Awaiting for your reply to take it further level.

    Company profiles as enclosed for your perusal.

    Thanks you,

    Regards,
    Bharath R
    Learning and development Manager

    a l #349, Ideal Homes, 43rd Main, 2nd Cross, RR Nagara – 560 098, Bengaluru, India. l
    m l +91 990 100 2299, off l +91 80 2860 6408 l Skype - bharath.r26 l www.pthinks.com, e l bharath@pthinks.com, l
    YouTube PthinkS l Twitter PthinkS l Facebook QtBangalore l Linked In PthinkS l

  • 0 Votes
    1 Posts
    700 Views
    No one has replied