GithubHelp home page GithubHelp logo

Comments (15)

ddobrev avatar ddobrev commented on May 27, 2024

Thank you for the effort to create those samples, they are definitely going to help progress.

  1. As soon as I am able to, I am going to check loading *.ui-s and fix the errors;
  2. We do not handle char** as well as we could in C++#, it's a missing feature. One of my end goals is definitely to remove any pointers from the generated API. It just needs more work to cover all cases. Before this summer it was even worse but thanks to @genuinelucifer we now have ref parameters instead of pointers;
  3. QApplication.Exec() is there, it's just static. The pattern to use in Qt is QApplication app(argc, argv); ... return QApplication::exec();
  4. I am afraid it won't help because I already use the latest C++#. It needs debugging.

I will get back to you when I have more time. Then we might think about merging your samples into the Qt# repo.

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

Thanks for the info on QApplication
I've added a load of comments to the test app, so I'll leave it for now

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

That's interesting, it looks like the last couple of commits to Cppsharp now allow for the creating of widgets, Creating a basic widget now works (the BasicFormTest function). Good job it's the first time I've seen something working / on screen.
Loading a ui still fails at QtWidgets.QWidget CreateWidget, but I think it's getting further than before

I've been using the latest QT so far, 5.5.0 I might try and see what happens with older versions

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

This is strange indeed, the binaries in the Qt# repo are from the current master (a78a650). How did you obtain your copies?

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

The last version of CppSharp I tried is the latest from git mono/CppSharp@563ef56
It looks like there's been a couple of changes over last night

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

Right, I've just seen them. However, they are totally unrelated to the described problem. Oh, well, I guess working without knowing why is better than not working without knowing why.

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

Thanks for the latest release, I've just tried compiling against the latest cppsharp / qtsharp.
There's definitley less errors than before.
So far I've noticed the following

  1. For QFormBuilder / QUiLoader -> during load of ui from file
    this now seems to drop out at a common point of QtCore.OnEvent, so we seem to be getting further
  2. If a QTextEdit is added to the dialog window
    then when the form closes an error is triggered
  3. If a QFormLayout is added to the dialog window
    then an error will trigger within QtWidget.HasHeightForWidth

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@grbd thank you for testing. I am aware of problems 1. and 3, in fact, I am working on them right now. 2. is new for me, thank you for reporting.

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@grbd I have decided to focus on the first problem for now. You are welcome to track its progress at https://gitlab.com/ddobrev/QtSharp/issues/22 .

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

cool thanks for the link

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@grbd the third problem, the one with QFormLayout, has been fixed at my second alpha: https://github.com/ddobrev/QtSharp/releases/tag/0.0.2 .

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@grbd please also try problem 2 (the QTextEdit) and let me know because I could not reproduce it, it may have been fixed.

from qtsharp.

Hecatron avatar Hecatron commented on May 27, 2024

I'll give both of them a go and let you know
thanks for looking into it

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

Problem 1 has been fixed at 4ce77c0. Since I've been unable to reproduce problem 2 and haven't received any additional information about it, I consider it complete which makes this whole issue resolved.
@grbd if you still encounter any of the 3 problems, please reopen.

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@grbd the fix has been included in the 0.0.3 release - https://github.com/ddobrev/QtSharp/releases/tag/0.0.3.

from qtsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.